package com.vieewer.btdemo.bean;

import java.util.List;

public class TranslateBean {

    /**
     * detectedLanguage : {"language":"en","score":1}
     * translations : [{"text":"欢迎来到微软翻译。猜猜我讲多少种语言！","to":"zh-Hans"}]
     */

    private DetectedLanguageBean detectedLanguage;
    private List<TranslationsBean> translations;

    public DetectedLanguageBean getDetectedLanguage() {
        return detectedLanguage;
    }

    public void setDetectedLanguage(DetectedLanguageBean detectedLanguage) {
        this.detectedLanguage = detectedLanguage;
    }

    public List<TranslationsBean> getTranslations() {
        return translations;
    }

    public void setTranslations(List<TranslationsBean> translations) {
        this.translations = translations;
    }

    public static class DetectedLanguageBean {
        /**
         * language : en
         * score : 1.0
         */

        private String language;
        private double score;

        public String getLanguage() {
            return language;
        }

        public void setLanguage(String language) {
            this.language = language;
        }

        public double getScore() {
            return score;
        }

        public void setScore(double score) {
            this.score = score;
        }
    }

    public static class TranslationsBean {
        /**
         * text : 欢迎来到微软翻译。猜猜我讲多少种语言！
         * to : zh-Hans
         */

        private String text;
        private String to;

        public String getText() {
            return text;
        }

        public void setText(String text) {
            this.text = text;
        }

        public String getTo() {
            return to;
        }

        public void setTo(String to) {
            this.to = to;
        }
    }
}
